package com.ruoyi.web.milk;

/**
 * @Program: RuoYi-Vue-chy->Customer
 * @Description: 消费者 获取牛奶
 * @Author: hongyu.chen
 * @Date: 2025-03-07 15:28
 * @Version： 1.0
 **/
public class Customer implements Runnable{

    private Box box;

    public Customer(Box box) {
        this.box = box;
    }

    @Override
    public void run() {
        while(true){
            box.get();
        }

    }

}
